TreeGridLoaded ({ /* JSONP header, to be possible to load from xxx_Jsonp data source */ 
   "Cfg" : { "id": "MasterTree2", "DetailOn": "1", "DetailExpand": "1", "SuppressCfg": "1", "MainCol": "SURNAME", "StandardFilter": "2", "Undo": "1", "Size": "Low"   }, 
   "Cfg_2" : { "AutoIdPrefix": "B", "NumberId": "1", "IdPrefix": "B", "IdChars": "0123456789"   }, 
   "Cols" : [ 
      { "Name": "id", "CanEdit": "0", "CanFilter": "0", "Width": "35"   }, 
      { "Name": "SURNAME", "Type": "Text", "GroupWidth": "1", "Width": "150"   }, 
      { "Name": "NAME", "Type": "Text", "Width": "60"   }, 
      { "Name": "AGE", "Type": "Int", "Width": "45"   }, 
      { "Name": "MARRIED", "Type": "Bool"   }  
   ], 
   "Panel" : { "Copy": "1"   }, 
   "Def" : [ 
      { "Name": "R", "DefParent": "NODE"   }, 
      { "Name": "NODE", "Detail": "DetailTree1,DetailTree2", "DefEmpty": "R", "Expanded": "1", "CanExpand": "1"   }, 
      { "Name": "Group", "AggChildren": "1", "Expanded": "1", "CanFilter": "2"   }  
   ], 
   "Header" : { "id": "id", "SortIcons": "2", "MenuName": "Header"   }, 
   "Head" : [ 
      { "Kind":"Filter", 
         "NAMECanEdit": "0", "NAMEShowMenu": "0", "NAMEButton": "Defaults", "NAMEDefaults": "|*FilterOff|*Rows", "NAMERange": "1", 
         "SURNAMECanEdit": "0", "SURNAMEShowMenu": "0", "SURNAMEButton": "Defaults", "SURNAMEDefaults": "|*FilterOff|*Rows", "SURNAMERange": "1"  
          }  
   ], 
   "Foot" : [ 
      { "Calculated": "1", "MenuName": "Summary", 
         "SURNAME": "Summary", "NAMECanEdit": "0", 
         "SURNAMECanEdit": "0", 
         "AGEFormula": "min(4)+\" - \"+max(4)", "AGEType": "Text", "AGEAlign": "Right", 
         "MARRIEDFormula": "count(\"MARRIED\",\"MARRIED\",4)+\" / \"+count(4)", "MARRIEDType": "Text", "MARRIEDAlign": "center"  
          }  
   ], 
   "Solid" : [ 
      { "Kind":"Toolbar1", "Cells": "DETAIL,SHOW,GROUP", 
         "DETAILType": "Radio", "DETAILEnum": "|1|2", "DETAILRange": "1", "DETAILLabel": "Show detail in", "DETAILWidth": "55", "DETAILCanFocus": "0", "DETAILNoColor": "1", "DETAIL": "1;2", 
         "DETAILOnChange": ["",
            "Grid.RefreshDetail(null,1); ",
            "Grid.Def.NODE.Detail = (Value+\"\").replace(\"1\",\"DetailTree1\").replace(\"2\",\"DetailTree2\").replace(\";\",\",\"); ",
            "for(var r=Grid.GetFirst();r;r=Grid.GetNext(r)) Grid.ColorRow(r);",
            ""], 

         "SHOWType": "Select", "SHOWLabel": "Show detail on", "SHOWWidth": "35", 
         "SHOWDefaults": "|Focus|Click|Double click", "SHOW": "Focus", 
         "SHOWOnChange": "Grid.DetailOn = Grid.GetDefaultsIndex(Row,Col,Value) + 1", 

         "GROUPType": "Bool", "GROUPLabelRight": "Group rows", "GROUPLeft": "1", 
         "GROUPOnChange": "Grid.DoGrouping(Value?\"SURNAME\":\"\")"  

          }  
   ], 
   "Actions" : { "OnClickButtonAdd": "AddRowEnd"   }, 
   "Toolbar" : { "Sort": "0", "Calc": "0", "Help": "0", "Debug": "0", "Columns": "0", "Kind": "Toolbar2"   }, 
   "Body" : [ 
      [ 
         { "Def": "NODE", "NAME": "Nancy", "SURNAME": "Newton", "AGE": "65", "MARRIED": "1", "Items": [
            { "Def": "NODE", "NAME": "John", "SURNAME": "Newton", "AGE": "42", "MARRIED": "1", "Items": [
               { "Def": "NODE", "NAME": "John", "SURNAME": "Newton", "AGE": "22", "MARRIED": "0", "Items": [
                  { "NAME": "John", "SURNAME": "Newton", "AGE": "1", "MARRIED": "0"   }, 
                  { "Def": "R", "NAME": "???", "SURNAME": "Newton", "AGE": "0", "MARRIED": "0"   }  
               ]}, 
               { "Def": "NODE", "NAME": "Maria", "SURNAME": "Bennett", "AGE": "22", "MARRIED": "1", "Items": [
                  { "NAME": "Nancy", "SURNAME": "Bennett", "AGE": "3", "MARRIED": "0"   }, 
                  { "NAME": "Herbert", "SURNAME": "Bennett", "AGE": "3", "MARRIED": "0"   }  
               ]}, 
            ]}, 
            { "NAME": "Maria", "SURNAME": "Newton", "AGE": "45", "MARRIED": "0"   }  
         ]}, 
         { "NAME": "James", "SURNAME": "Thompson", "AGE": "24", "MARRIED": "0"   }, 
         { "Def": "NODE", "NAME": "Peter", "SURNAME": "Thompson", "AGE": "33", "MARRIED": "1", "Items": [
            { "NAME": "Oscar", "SURNAME": "Thompson", "AGE": "10", "MARRIED": "0"   }  
         ]}, 
         { "Def": "NODE", "NAME": "Daniel", "SURNAME": "Moore", "AGE": "38", "MARRIED": "1", "Items": [
            { "NAME": "Lisa", "SURNAME": "Moore", "AGE": "12", "MARRIED": "0"   }, 
            { "NAME": "Peter", "SURNAME": "Moore", "AGE": "10", "MARRIED": "0"   }  
         ]}, 
      ], 
   ], 
}) /* End of JSONP header */ 